package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ShkcBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ShkcService extends BaseService<ShkcBean> {

	ShkcBean getShkcBeanById(String id) throws Exception;
	
	void removeShkcBeanById(String id) throws Exception;
	
	void removeShkcBeanByIds(String ids) throws Exception;
	
	ShkcBean saveShkcBean(ShkcBean crm) throws Exception;
	
	ShkcBean updateShkcBean(ShkcBean crm) throws Exception;
	
	Page<ShkcBean>  findShkcBeanByCond(ShkcBean bean,
			Page<ShkcBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveShkcBeanExt(String sql) throws Exception;

	String findShkcBeanExtCreate(String tableName) throws Exception;

	String findShkcBeanExtEdit(String tableName, String id)
			throws Exception;

	String findShkcBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasShkcBeanExtData(String tableName, String id)
			throws Exception;
}